import { getHotCity as HotCity } from '@/service/city'

export const getHotCity = () => {
  return async dispatch => {
    const payload = await HotCity('hot')
    dispatch({
      type: 'hot',
      payload: payload.data,
    })
  }
}

export const getGroupCity = () => {
  return async dispatch => {
    const payload = await HotCity('group')
    dispatch({
      type: 'group',
      payload: payload.data,
    })
  }
}

